package com.ido.otaclient.module;

import java.io.Serializable;

/**
 * Copyright (c) 2019 深圳市爱都科技有限公司. All rights reserved.
 *
 * @Author: xyb
 * @CreateDate: 2020-02-14 10:04
 * @description 单板的实体类
 */
public class Veneer extends BaseEntity implements Serializable {
    private String ipPort;
    /**
     * 单板图片
     */
    private String image;
    /**
     * 单板ip
     */
    private String ip;
    /**
     * 升级中的状态 0 代表上传中  1 代表商上传完成
     */
    private int downloadStatus;
    /**
     * 状态 0 空闲 1、升级中
     */
    private int updateStatus;
    /**
     * 进度
     */
    private int progress;

    /**
     * 连接失败次数
     */
    private int failConnectCount;

    /**
     * 单板对应的升级次数
     */
    private int failUpdateCount;

    /**
     * 设备的mac
     */
    private String mac;




    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getDownloadStatus() {
        return downloadStatus;
    }

    public void setDownloadStatus(int downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public int getUpdateStatus() {
        return updateStatus;
    }

    public void setUpdateStatus(int updateStatus) {
        this.updateStatus = updateStatus;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public int getFailConnectCount() {
        return failConnectCount;
    }

    public void setFailConnectCount(int failConnectCount) {
        this.failConnectCount = failConnectCount;
    }

    public int getFailUpdateCount() {
        return failUpdateCount;
    }

    public void setFailUpdateCount(int failUpdateCount) {
        this.failUpdateCount = failUpdateCount;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getIpPort() {
        return ipPort;
    }

    public void setIpPort(String ipPort) {
        this.ipPort = ipPort;
    }

    @Override
    public String toString() {
        return "Veneer{" +
                "ipPort='" + ipPort + '\'' +
                ", image='" + image + '\'' +
                ", ip='" + ip + '\'' +
                ", downloadStatus=" + downloadStatus +
                ", updateStatus=" + updateStatus +
                ", progress=" + progress +
                ", failConnectCount=" + failConnectCount +
                ", failUpdateCount=" + failUpdateCount +
                ", mac='" + mac + '\'' +
                '}';
    }
}
